//
//  HMHUDManager.h
//  项目的登录注册模块的封装
//
//  Created by 孙鹏飞 on 2017/3/20.
//  Copyright © 2017年 homai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"


@interface HMHUDManager : NSObject

/** 取消所有HUD */
+ (void)hideAllHUDs;

/** 显示进度HUD */
+ (MBProgressHUD *)showHUD;

/** 显示自动消失的文字HUD */
+ (MBProgressHUD *)showHUDWithText:(NSString *)text;

/** 显示成功／失败HUD */
+ (MBProgressHUD *)showHUDWithText:(NSString *)text success:(BOOL)success;

/** 显示图文HUD */
+ (MBProgressHUD *)showHUDWithText:(NSString *)text image:(UIImage *)image;

/** 显示文字HUD */
+ (MBProgressHUD *)showHUDWithText:(NSString *)text autoHide:(BOOL)autoHide;

/** 显示图文HUD，不消失 */
+ (MBProgressHUD *)showHUDWithText:(NSString *)text image:(UIImage *)image autoHide:(BOOL)autoHide;

#pragma mark - View Util

// 加载中页面
+ (UIView *)loadingDataView;

// 加载通用动画
+ (UIImageView *)loadingAnimationViewWithFrame:(CGRect)frame;

// 加载动画帧
+ (NSArray *)loadingAnimationImageArray;

@end
